home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Game-Power
/
Amiga Game-Power.iso
/
anwendungen
/
gw print
/
extract_fonts
/
small.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-20
|
3KB
|
97 lines
#include <graphics/text.h>
extern char fontname[];
extern UWORD CharData[];
extern ULONG CharLoc[];
extern UWORD CharSpace[];
extern UWORD CharKern[];
struct TextFont SmallFont = {
{ /* Message */
{ /* Node */
NULL, /* ln_Succ */
NULL, /* ln_Pred */
NT_FONT, /* ln_Type */
0, /* ln_Pri */
fontname, /* ln_Name */
},
NULL, /* mn_ReplyPort */
sizeof (SmallFont) +
sizeof (fontname) +
sizeof (CharData) +
sizeof (CharLoc) +
sizeof (CharSpace) +
sizeof (CharKern), /* mn_Length */
},
5, /* tf_YSize */
0, /* tf_Style */
98, /* tf_Flags */
6, /* tf_XSize */
5, /* tf_Baseline */
1, /* tf_BoldSmear */
0, /* tf_Accessors */
32, /* tf_LoChar */
95, /* tf_HiChar */
(APTR)&CharData,/* tf_CharData */
32, /* tf_Modulo */
(APTR)&CharLoc, /* tf_CharLoc */
(APTR)&CharSpace,/*tf_CharSpace */
(APTR)&CharKern,/* tf_CharKern */
};
char fontname[] = "small.font";
UWORD CharData[] = {
0xaa9d,0x5264,0x0017,0x3f38,0x7f77,0xdce0,0x2264,0xef3b,
0xdffb,0xb7e3,0xde23,0x3779,0xde7f,0xef7b,0xdeff,0xcd0e,
0xafe8,0x6a9e,0x801d,0xf1ef,0x78c0,0xf7b9,0x5d1b,0xbdef,
0x78c6,0x36c3,0xf637,0xbdef,0x7bc3,0x6f7b,0xdecd,0x468e,
0x829c,0x9495,0xce2f,0xb71b,0x7ef1,0x9cf0,0x80ab,0xbf63,
0x7ef6,0xfec3,0xe63f,0xfdef,0x7b73,0x6f7f,0x73d9,0x240a,
0x07cb,0x289e,0x904d,0xbc6f,0xe3db,0x3639,0x5d09,0xfdef,
0x78c6,0xf6db,0xf637,0xbdfb,0xde1b,0x6d5b,0xd9b1,0x140e,
0x829d,0x5464,0x2147,0x3fb8,0x7e76,0x1ce2,0x2225,0xbf3b,
0xdfc3,0xb7ee,0xdff7,0x9761,0x7bf3,0x3891,0xdf3f,0x9c7e,
};
ULONG CharLoc[] = {
0x00000000,0x00000002,0x00020003,0x00050005,
0x000a0005,0x000f0003,0x00120004,0x00160002,
0x00180002,0x001a0002,0x001c0003,0x001f0003,
0x00220002,0x00240003,0x00270002,0x00290003,
0x002c0005,0x00310003,0x00340005,0x00390005,
0x003e0005,0x00430005,0x00480005,0x004d0005,
0x00520005,0x00570005,0x005c0002,0x005e0002,
0x00600003,0x00630003,0x00660003,0x00690003,
0x006c0003,0x006f0005,0x00740005,0x00790005,
0x007e0005,0x00830005,0x00880005,0x008d0005,
0x00920005,0x00970004,0x009b0005,0x00a00005,
0x00a50005,0x00aa0005,0x00af0005,0x00b40005,
0x00b90005,0x00be0005,0x00c30005,0x00c80005,
0x00cd0004,0x00d10005,0x00d60005,0x00db0005,
0x00e00005,0x00e50005,0x00ea0005,0x00ef0002,
0x00f10003,0x00f40002,0x00f60003,0x00f90003,
};
UWORD CharSpace[] = {
0x0004,0x0002,0x0004,0x0006,0x0006,0x0004,0x0005,0x0002,
0x0003,0x0003,0x0004,0x0004,0x0003,0x0004,0x0002,0x0004,
0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
0x0006,0x0006,0x0002,0x0003,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
0x0006,0x0005,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
0x0006,0x0006,0x0006,0x0006,0x0005,0x0006,0x0006,0x0006,
0x0006,0x0006,0x0006,0x0003,0x0004,0x0003,0x0004,0x0004,
};
UWORD CharKern[] = {
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
};